package in.developersguide.oops.inhertance;

public class SimpleInhertiance {
  public void show(){
	  System.out.println("Base Class");
  }
  public static void main(String[] args) {
	  DerivClass b =  (DerivClass) new SimpleInhertiance();	
 }
}

class DerivClass extends SimpleInhertiance
{
	public void show()
	{
		System.out.println("Derive Class");
	}
}